Skip to main content

Section Methods

An object defining methods for the Section class.

OnPropertyChanged(sender, e)

Handles the property changed event.

Parameters:

sender (required): object
The source of the event.

e (required): PropertyChangedEventArgs<object>
The property changed event arguments.

This is a sync method. Method runs synchronously.


GetDifferences(otherObj)

Compares the current instance with another control and returns the differences.

Parameters:

otherObj (required): object
The object to compare with.

Returns:

Type: Dictionary<string, object>
A dictionary of differences between the current instance and the other control.

This is a sync method. Method runs synchronously.


OnPropertyValueGet(sender, e)

Raises the PropertyValueGet event.

Parameters:

sender (required): object
The source of the event.

e (required): GetControlPropertyValueEventArgs
The property value get event arguments.

This is a sync method. Method runs synchronously.


OnPropertyChanging(sender, e)

Handles the property changing event.

Parameters:

sender (required): object
The source of the event.

e (required): PropertyChangingEventArgs<object>
The property changing event arguments.

This is a sync method. Method runs synchronously.


OnLoad(sender, e)

Raises the Load event.

Parameters:

sender (required): object
The source of the event.

e (required): LoadEventArgs
The load event arguments.

This is a sync method. Method runs synchronously.


SetPropertyValue(mapping, value)

Sets the value of a property specified by a mapping.

Parameters:

mapping (required): List<string>
A list of strings defining the property path.

value (required): object
The value to set for the property.


OnRender(sender, e)

Raises the Render event.

Parameters:

sender (required): object
The source of the event.

e (required): RenderEventArgs
The render event arguments.

This is a sync method. Method runs synchronously.


GetProtectedData(isDisabledOrReadOnly)

#import (Bimser.CSP.FormControls.Base.ICanProtectData.GetProtectedData(bool)) (shortDescription)

Parameters:

isDisabledOrReadOnly (required): bool
Indicates whether to include only properties that must be protected when the control is disabled or read-only.

Returns:

Type: Dictionary<string, object>
Returns a dictionary of protected properties and their values for integrity verification.

This is a sync method. Method runs synchronously.


OnPreRender(sender, e)

Raises the PreRender event.

Parameters:

sender (required): object
The source of the event.

e (required): PreRenderEventArgs
The pre-render event arguments.

This is a sync method. Method runs synchronously.


OnInit(sender, e)

Raises the Init event.

Parameters:

sender (required): object
The source of the event.

e (required): InitEventArgs
The initialization event arguments.

This is a sync method. Method runs synchronously.